package com.weiqiao.mall.service;

import com.weiqiao.mall.domain.TeamEntity;
import com.weiqiao.mall.service.dto.TeamUserDTO;
import com.weiqiao.mall.service.vo.TeamVO;
import org.bson.Document;

import java.util.List;
import java.util.Map;

public interface ITeamService {

    List<TeamEntity> teamList(TeamVO vo);

    /**
     * 根据用户id获得当前省长做创建的团队信息
     * @param company_id
     * @param doc
     * @return
     */
    List<String> teamList(Integer company_id, Document doc);

    /**
     * 获取团队详情
     *
     * @param companyId
     * @param team_id
     * @return
     */
    TeamEntity getTeamInfo(int companyId, String team_id);

    Map<String, Object> updateTeam(TeamVO vo);

    Map<String, Object> insertTeam(TeamVO vo);

    Map<String, Object> deleteTeam(TeamVO vo);

    int countTeam(TeamVO vo);

    List<TeamUserDTO> notLeaderList(TeamVO vo);
}
